Skip to content

feat(agent): add ./reusable-stream subpath export - #112

Open
LukasParke wants to merge 1 commit into
mainfrom
lukeparke/reusable-stream-subpath-export
Open

feat(agent): add ./reusable-stream subpath export#112
LukasParke wants to merge 1 commit into
mainfrom
lukeparke/reusable-stream-subpath-export

Conversation

@LukasParke

@LukasParke LukasParke commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Agent: focused follow-up completing the upstream replacement for openrouter-web#33659's bun patch.

What

Adds a ./reusable-stream export-map entry to @openrouter/agent, mirroring the existing ./tool-event-broadcaster entry.

Why

ReusableReadableStream is importable from source and heavily unit-tested, but the published package has no export entry for it. openrouter-web's 0.9.0 bump PR has to carry a bun patch hunk that adds exactly this entry so its sdk-loop-memory-retention.test.ts can do import { ReusableReadableStream } from '@openrouter/agent/reusable-stream'. With this entry upstream, that hunk — and with #109 + #110 + #111 landed, the entire memory/startup patch — can be dropped.

Verification

  • scripts/verify-package-boundaries.mjs (packs real tarballs, installs into a scratch consumer, verifies every export target): passes
  • Self-reference import resolves: await import('@openrouter/agent/reusable-stream')[ 'ReusableReadableStream' ]
  • pnpm typecheck / pnpm lint clean; pnpm test: 96 files, 1153 tests passing

Open in Devin Review

ReusableReadableStream is importable from source and covered by unit
tests, but the published package had no export-map entry for it, so
downstream consumers (openrouter-web's stream-retention tests) had to
patch the package to add one. Mirror the existing ./tool-event-broadcaster
entry. Verified via scripts/verify-package-boundaries.mjs (packed tarball
install) and a self-reference import resolving ReusableReadableStream.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant